package com.food.mapper;

import com.food.model.UserProfile;
import com.food.model.dashboard.WeightRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface UserProfileMapper {
    UserProfile findByUserId(Integer userId);
    void insert(UserProfile profile);
    void update(UserProfile profile);
    int countByUserId(Integer userId);
    List<WeightRecord> getWeightTrend(@Param("userId") Integer userId, 
                                     @Param("startDate") LocalDate startDate, 
                                     @Param("endDate") LocalDate endDate);
} 